<?php

$date = getdate();
$t = $date['mday'];
$b = $date['mon'];
$y = $date['year'];

echo "$y-$b-$t";

?> 
